package com.gk.carshopsys.service;

import com.github.pagehelper.PageInfo;
import com.gk.carshopsys.pojo.Admin;
import org.springframework.stereotype.Service;

import java.sql.Date;
import java.util.HashMap;
import java.util.List;

public interface AdminService {

    //根据id和用户名查找用户
    public List<Admin> findAdminByIdAndUsername(Integer id,String username);

    //查找管理员账户
    public Admin loginAdmin(String username,String password);



    //添加用户
    public int addAdmin(String username, String password);

    //更新用户
    public int updateAdmin(Integer id,String username,String password);

    //删除用户
    public  int delAdmin(List<Integer> idlist);


}
